const { Error } = require('../model/res')

module.exports = (req, res, next) => {
    if (req.session.username) return next()
    res.json(new Error('未登录'))
}
